﻿@model PraceDyplomowe2.Models.RegisterModel
@{
    ViewBag.Title = "Stwórz nowego użytkownika";
}

@section featured
{
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1>@ViewBag.Title.</h1>
            </hgroup>
        </div>
    </section>
}

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary()

    <fieldset>
        <legend>Registration Form</legend>
        <ol>
            <li>
                @Html.LabelFor(m => m.UserName)
                @Html.TextBoxFor(m => m.UserName)
            </li>
            <li>
                @Html.LabelFor(m => m.Password)
                @Html.PasswordFor(m => m.Password)
            </li>
            <li>
                @Html.LabelFor(m => m.ConfirmPassword)
                @Html.PasswordFor(m => m.ConfirmPassword)
            </li>
             <li>
                @Html.LabelFor(m => m.Imie)
                @Html.TextBoxFor(m => m.Imie)
            </li>
             <li>
                @Html.LabelFor(m => m.Nazwisko)
                @Html.TextBoxFor(m => m.Nazwisko)
            </li>
            <li>
                @Html.LabelFor(m => m.Rola)
                @Html.DropDownListFor(m => m.Rola,new SelectList(
                  new List<Object>{ 
                       new { value = 1 , text = "Promotor"  },
                       new { value = 2 , text = "Student" },
                       new { value = 3 , text = "Dziekan"},
                       new { value = 4 , text = "Administrator"}
                    },
                  "value",
                  "text",
                   2))
            </li>
            <li>
                @Html.LabelFor(m => m.WydzialId)
                @Html.DropDownListFor(m => m.WydzialId,new SelectList(
                  new List<Object>{ 
                       new { value = 1 , text = "Matematyki i Informatyki"  },
                    },
                  "value",
                  "text",
                   2))
            </li>
            <li>
                @Html.LabelFor(m => m.PoziomStudiow)
                @Html.DropDownListFor(m => m.PoziomStudiow,new SelectList(
                  new List<Object>{ 
                       new { value = 1 , text = "Licencjackie"  },
                       new { value = 2 , text = "Inżynierskie" },
                       new { value = 3 , text = "Magisterskie"}
                    },
                  "value",
                  "text",
                   2))
            </li>
             <li>
                @Html.LabelFor(m => m.KierunekStudiow)
                @Html.DropDownListFor(m => m.KierunekStudiow,new SelectList(
                  new List<Object>{ 
                       new { value = 2 , text = "Informatyka"  },
                       new { value = 3 , text = "Matematyka" }
                    },
                  "value",
                  "text",
                   2))
            </li>
        </ol>
        <input type="submit" value="Zarejestruj" />
    </fieldset>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}

